Name:		python3-cairo
Version:	1.21.0
Release:	1%{?dist}
Summary:	Python bindings for the cairo graphics library

License:	LGPLv2
URL:		https://pycairo.readthedocs.io/
Source0:	https://github.com/pygobject/pycairo/releases/download/v1.21.0/pycairo-1.21.0.tar.gz

BuildRequires:	python3 cairo-devel

%global pyver 3.9

%description

%prep
%setup -q -n pycairo-%{version}


%build
python3 setup.py build

%install
python3 setup.py install --root="%{buildroot}" --skip-build --optimize=1

%files
%{_includedir}/pycairo/py3cairo.h
%{_libdir}/pkgconfig/py3cairo.pc
%{_libdir}/python%{pyver}/site-packages/cairo
%{_libdir}/python%{pyver}/site-packages/pycairo-%{version}-py%{pyver}.egg-info

%changelog

